package com.summer.web.v1.base.jmx.factory;

import com.summer.web.v1.pojo.User;

import javax.management.*;

class UserJolokiaMBean implements JolokiaMBeanRegister {

    @Override
    public RegisterParam<User> register() throws MalformedObjectNameException {
        RegisterParam<User> registerParam = new RegisterParam<>();
        registerParam.setTypeClass(new User());
        registerParam.setObjectName(new ObjectName("jolokia.test:name=User"));
        return registerParam;
    }
}
